<?php
set_time_limit(0);
ini_set("display_errors", "On");
error_reporting(E_ALL);
 
include '../c/config.php';

$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
 
 
$sql="SELECT phone, COUNT(phone) as c FROM uinfo where isdel is NULL GROUP by phone HAVING c > 1";
$query =$mysqli->query($sql);
$i=1;  
while ($list=$query->fetch_array()) {
        var_dump($list);echo ": $i";
 echo "<br><br>";
        echo $list['phone'];
        echo "<br><br><br><br>";
 
	  $i++;
	 
}
 
 